"""回测模块."""

from .baseline import BuyAndHoldStrategy
from .config import BacktestConfig
from .executor import Position, Trade, TradeExecutor
from .metrics import BacktestMetrics, ModelMetrics, calculate_backtest_metrics, calculate_model_metrics
from .robustness import (
    RobustnessEvaluator,
    RobustnessReport,
    SensitivityAnalyzer,
    SensitivityResult,
)
from .signals import SignalGenerator
from .walk_forward import BacktestResult, WalkForwardBacktester

__all__ = [
    "BacktestConfig",
    "SignalGenerator",
    "TradeExecutor",
    "Trade",
    "Position",
    "WalkForwardBacktester",
    "BacktestResult",
    "BacktestMetrics",
    "ModelMetrics",
    "calculate_backtest_metrics",
    "calculate_model_metrics",
    "BuyAndHoldStrategy",
    "SensitivityAnalyzer",
    "SensitivityResult",
    "RobustnessEvaluator",
    "RobustnessReport",
]

